class n{_handle;confirm;constructor(){this._handle={confirm:n=>"undefined"!=typeof uni?new Promise((o,e)=>{uni.showModal({title:"温馨提示",content:n.message,cancelText:n.cancelButtonText,confirmText:n.confirmButtonText,success:n=>{n.confirm?o():e()},fail:n=>{throw n&&console.error(n),new Error("'uni.showModal' Api调用异常。")}})}):new Promise((o,e)=>{if(void 0===window.confirm)throw new Error("'window.confirm' Api调用异常。");window.confirm(n.message)?o():e()})};const n=n=>this._handle.confirm(n);n.use=n=>{this._handle.confirm=n},this.confirm=n}}export{n as MessageBoxManage};
//# sourceMappingURL=messageBox.mjs.map
